package com.learnaop.javaaop.example.aop;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@Configuration
// 启用AspectJ的注解
@EnableAspectJAutoProxy
// 此注解决定那些类可以被扫描到, 条件过于宽泛会报Cannot subclass final class org.springframework.boot.autoconfigure.AutoConfigurationPackages$BasePackages
@ComponentScan("com.learnaop.javaaop.example.aop")
public class JavaAopConfig {
    // 通过这个类将所有的包含注解的类全部扫描出来
}
